from building import *
import rtconfig
cwd     = GetCurrentDir()
src	= ['system_mm32f5277e.c']
src += Glob('drivers/*.c')

CPPPATH = [cwd, cwd + '/CMSIS/Include', cwd + '/drivers']

CPPDEFINES = ['BRD_PLUS_F5270']

if rtconfig.PLATFORM in ['armcc', 'armclang']:
    src += ['mdk/startup_mm32f5277e.S']

group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

Return('group')
